<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>v-bind动态绑定style</title>
    <style>
        .active{
            color: red;
        }
    </style>
</head>
<body>
    <div id="app">
        <h2 :style="{fontSize:finalSize+'px',color:finalColor}">{{message}}</h2>
    </div>
</body>
  <script src="../js/vue.js"></script>
  <script>
      var app = new Vue({
          el: '#app',
          data: {
              message: '信息',
              finalSize:50,
              finalColor: 'blue',
          },
      })
  </script>
</html>